<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php 
$sql="SELECT description, startdate, finishdate FORM assignments WHERE id=".$_GET["id"];
$result=mysql_query($sql);
$rows=mysql_num_rows($result);
if($rows==0)
{
	echo "không tồn tại";
	exit;
}
$row = mysql_fetch_array($result);
echo $row["description"];
echo $row["startdate"];
echo $row["finishdate"];
$sql="SELECT point, datesubmitted FORM assignment_submission WHERE assignment_id=".$_GET["id"]."and user_id=".$_COOKIE["user_id"];
$result=mysql_query($sql);
$rows=mysql_num_rows($result);
if($rows!=0)
{
	$row = mysql_fetch_array($result);
	echo $row["point"];
	echo $row["datesubmitted"];
}
?>
<form action="assignment_submission.php" method="post">
  <label for="file">Filename:</label>
  <input type="file" name="file" id="file" />
  <br />
  <input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>